package cn.edu.wynu.print;

import java.util.Scanner;

public class BasicArithmetic {
    public static void main(String[] args) {
        // 读入两个浮点数并计算四则运算  // 先写右边,再ctrl + alt + v
        Scanner scanner = new Scanner(System.in);

        System.out.println("请输入两个浮点数,用空格分开:");
        double v1 = scanner.nextDouble();
        double v2 = scanner.nextDouble();

        System.out.println("v1 + v2 = " + (v1 + v2));
        System.out.println("v1 - v2 = " + (v1 - v2));
        System.out.println("v1 * v2 = " + (v1 * v2));
        System.out.println("v1 / v2 = " + (v1 / v2));
    }
}
